G_PARAM_READABLE));
}
-/**
- * search_path_init:
- *
- * search_path_init and get_applications_search_path below were copied from glib/gio/gdesktopappinfo.c
- * copyright Red Hat, Inc., written by Alex Larsson, licensed under the LGPL
- *
- * Return value: location of an array with user and system application directories.
- */
-static gpointer
-search_path_init (gpointer data)
-{
- char **args = NULL;
- const char * const *data_dirs;
- const char *user_data_dir;
- int i, length, j;
-
- data_dirs = g_get_system_data_dirs ();
- length = g_strv_length ((char **)data_dirs);
-
- args = g_new (char *, length + 2);
-
- j = 0;
- user_data_dir = g_get_user_data_dir ();
- args[j++] = g_build_filename (user_data_dir, "applications", NULL);
- for (i = 0; i < length; i++)
- args[j++] = g_build_filename (data_dirs[i],
- "applications", NULL);
- args[j++] = NULL;
-
- return args;
-}
-/**
- * get_applications_search_path:
- *
- * Return value: location of an array with user and system application directories.
- */
-static const char * const *
-get_applications_search_path (void)
-{
- static GOnce once_init = G_ONCE_INIT;
- return g_once (&once_init, search_path_init, NULL);
-}
-
/**
* shell_clutter_texture_set_from_pixbuf:
* texture: #ClutterTexture to be modified
g_list_free (children);
}
-void
+static void
shell_overflow_list_paint (ClutterActor *actor)
{
ShellOverflowList *self = SHELL_OVERFLOW_LIST (actor);
{
GList *children, *iter;
int i;
+ int result;
children = clutter_container_get_children (CLUTTER_CONTAINER (self));
if (children == NULL)
- return NULL;
+ return -1;
iter = g_list_nth (children, (self->priv->page) * self->priv->items_per_page);
- int result = -1;
+ result = -1;
for (i = 0; iter; iter = iter->next, i++)
if (iter->data == actor)
{
static void shell_process_dispose (GObject *object)
{
- ShellProcess *self = (ShellProcess*)object;
-
G_OBJECT_CLASS (shell_process_parent_class)->dispose(object);
}
const ClutterActorBox *box,
ClutterAllocationFlags flags)
{
- ClutterGroupPrivate *priv = CLUTTER_GROUP (self)->priv;
GList *children, *iter;
/* chain up to set actor->allocation */
static void
shell_stack_class_init (ShellStackClass *klass)
{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
ClutterActorClass *actor_class = CLUTTER_ACTOR_CLASS (klass);
actor_class->get_preferred_width = shell_stack_get_preferred_width;
if (args[0] == NULL)
return;
- args[1] = arg;
+ args[1] = (char *)arg;
args[2] = NULL;
screen = gdk_screen_get_default ();
G_TYPE_NONE, 0);
}
-ShellStatusMenu *
-shell_status_menu_new (void)
-{
- return g_object_new (SHELL_TYPE_STATUS_MENU, NULL);
-}
-
static void
position_menu (GtkMenu *menu, gint *x, gint *y, gboolean *push_in, gpointer user_data)
{
G_OBJECT_CLASS (shell_texture_cache_parent_class)->finalize (object);
}
-ShellTextureCache*
-shell_texture_cache_new ()
-{
- return SHELL_TEXTURE_CACHE (g_object_new (SHELL_TYPE_TEXTURE_CACHE,
- NULL));
-}
-
typedef struct {
ShellTextureCache *cache;
char *uri;
* created for a thumbnail.
*/
void
-shell_texture_cache_unref_thumbnail (ShellTextureCache *cache,
+shell_texture_cache_evict_thumbnail (ShellTextureCache *cache,
int size,
const char *uri)
{
* Return value: (transfer none): The global texture cache
*/
ShellTextureCache*
-shell_texture_cache_get_default ()
+shell_texture_cache_get_default (void)
{
if (instance == NULL)
instance = g_object_new (SHELL_TYPE_TEXTURE_CACHE, NULL);
GType shell_texture_cache_get_type (void) G_GNUC_CONST;
-ShellTextureCache* shell_texture_cache_get_default();
+ShellTextureCache* shell_texture_cache_get_default (void);
ClutterActor *shell_texture_cache_load_gicon (ShellTextureCache *cache,
GIcon *icon,